<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
<%@ include file="/pages/inc/taglibs.jsp"%>
</head>
<body>
<!-- project section -->
	<div class="projectsection">
		<c-rt:forEach items="${projectList}" var="project">
				<div class="panel-group project container" id="accordion${project.projectNo}"
					role="tablist" aria-multiselectable="true">
					<div class="panel panel-default">
						<div class="panel-heading" role="tab">
							<h3 class="panel-title">
								<a data-toggle="collapse" data-parent="#accordion${project.projectNo}"
									href="#collapseOne${project.projectNo}">${project.projectName}</a> <a href="#"
									class="edit"><img src="images/edit.png" class="editicon"></a>
							</h3>
						</div>
						<div id="collapseOne${project.projectNo}" class="panel-collapse collapse">
							<div class="panel-body">
								<h4>编号：${project.projectNo}</h4>
								<h4>${project.startDate}——${project.endDate}</h4>
								<h4>${project.flag}${project.expensingOrCapital}</h4>
								<p>${project.content}</p>
								<button type="button" class="btn btn-primary delete" onclick="deleteProject('${project.id}')">删除</button>
							</div>
						</div>
					</div>

				</div>

			</c-rt:forEach>
	</div>
</body>
</html>